<include file="public:top"/>
<div class="container">
    <div class="maincontent">
        <h3 class="pull-left">
            <i class="glyphicon glyphicon-home"></i>
            班级留言<small>Class message</small>
        </h3>
        <div class="pull-right addButton">
            <a href="<?php echo Url::messageList()?>">返回留言列表</a>
        </div>
        <div class="clear"></div>
        <div class='hr'></div>
        <div class="row row-space">
            <foreach name="result1" item="vo" key="key">
                <div class="col-md-2">
                    <img class="img-rounded img-size" src="__PUBLIC__/photos/s_{{$vo.u_image}}"/>
                    <div>{{$vo.u_name}}</div>
                    <div>
                        {{$vo.le_date|date="Y-m-d", ###}}
                    </div>
                </div>
                <div class="col-md-9"> 
                    {{$vo.le_content}}
                </div>
                <div class="clear"></div>
           </foreach>
        </div>
        <ul class="pager">
            <notempty name="lastRecord">
                <li>
                    <a href="<?php echo Url::messageDetail($lastRecord);?>">上一条</a>
                </li>
                <span class="pageSpace"></span>
            </notempty>
            <notempty name="nextRecord">
                <li>
                    <a href="<?php echo Url::messageDetail($nextRecord);?>">下一条</a>
                </li>
            </notempty>
        </ul>
        <div class="hr"></div>
        <!-------留言回复---------->
        <notempty name='isHasReply'>
            <form action="__URL__/addplhf/" method="post">
                <h4><strong>发表评论:</strong></h4>
                <div class="form-group">
                    <input type='hidden' value="{{$result1.0.le_id}}" name="le_id"/>
                    <textarea name="content" class="form-control" placeholder="留下你的足迹" rows="4"></textarea>
                </div>
                <div class="form-group text-right">
                    <input type="submit" class="btn btn-default" value="发表评论" />
                </div>
            </form>
            <div class="hr"></div>
        </notempty>
        <!-------留言回复内容------------>
        <notempty name="count">
            <h4><strong>评论:</strong></h4>
            <div class="hr"></div>
            <volist name="plmess" id="vo" key="k">
                <div class="row row-space">
                    <div class="col-md-2">
                        <img class="img-rounded img-size" src="__PUBLIC__/photos/s_{{$vo.u_image}}"/>
                        <div>{{$vo.u_name}}</div>
                    </div>
                    <div class="col-md-9">
                        <div>
                            第{{$key+1}}楼  {{$vo.zb_date}}
                        </div> 
                        <div>
                            {{$vo.zb_content}}
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="hr"></div>
            </volist>
        </notempty>
        <div class="margin-bottom">{{$page}}</div>
    </div>
</div>
<include file="public:footer"/>
